{	Problem: http://codeforces.ru/problemset/problem/90/A
	Verdict: Accepted
}
var
    r,g,b,ans:longint;
    
begin
read(r,g,b);
ans:=30;
r:=(r-1) shr 1+1;
g:=(g-1) shr 1+1;
b:=(b-1) shr 1+1;
if (r>g) and (r>b) then inc(ans,(r-1)*3) else
if (g>=r) and (g>b) then inc(ans,(g-1)*3+1) else inc(ans,(b-1)*3+2);
write(ans);
end.